package com.nuonuo.util.tmp;

/**
 * @author duan
 * @version 1.0
 * @date 2023/12/29 9:10
 */
public class StringHashTest {

    public static void main(String[] args) {
        String target = "73bf6bbccee2447db46648e9520e5b4c";
        String[] values = new String[]{
                "2dce857a97ed4c8ba334d030861cb1c2",
                "caf6bf46f48e47b483c0ca9c04641cef",
                "caf6bf46f48e47b483c0ca9c04641cef",
                "a859822879514049a365db2fcbf6933a",
                "bb2b5119bc484261bd69fc32a8d4d6d4",
                "0d9bc334e3424b31a470150cdd83888d",
                "4ef817a262ce453791eadc3e37a1bc99",
                "c23c6a9840e3468d89d59842fd1d8c39",
                "178b22a43d354178abc0b8d1d86cbfce",
                "65482f60dc974a94a47e97ac2717d0d7",
                "fa34ad3ddfe347bd9bcd36f3eeaed419",
                "b97835e454274aeea86edee57b700314",
                "80d9251adef243609ff3c80b4975a132",
                "ee2ff7ca4fd446ada35c8e767bc3e0b8",
                "2b8038d39fe14c168baf6f3a100eeec9",
                "e79a2f5388da4ab9a6ed0ec8ba89ed1e",
                "e1b9e3a1537d4876ae0fd3bfa7ea22f8",
                "387a00ff45cf41168a9a80fe663cabe6",
                "8cf8cc4d7e5948ebabf8fe70089f3e8e",
                "581bc25bb8264f068d0dcdb7838277bf"
        };

        int mod = target.hashCode() % 8;
        System.out.println("target = " + mod);
        for (String value : values) {
            int tmp = value.hashCode() % 8;
            System.out.println(value + " ########### " + tmp);
        }
    }
}
